package com.qdc.datacenters.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 企业微信群(CorpGroup)表实体类
 *
 * @author danmo
 * @since 2024-03-07 14:51:30
 */
@Schema
@Data
@SuppressWarnings("serial")
@TableName("corp_group")
public class CorpGroup extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 347755076494705529L;

    /**
     * 主键ID
     */

    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 群聊id
     */
    @Schema(description = "群聊id")
    @TableField("chat_id")
    private String chatId;


    /**
     * 群名
     */
    @Schema(description = "群名")
    @TableField("group_name")
    private String groupName;


    /**
     * 群创建时间
     */
    @Schema(description = "群创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("add_time")
    private Date addTime;


    /**
     * 群公告
     */
    @Schema(description = "群公告")
    @TableField("notice")
    private String notice;


    /**
     *
     */
    @Schema(description = "")
    @TableField("owner")
    private String owner;


    /**
     * 管理员id
     */
    @Schema(description = "管理员id")
    @TableField("admin_user_id")
    private String adminUserId;


    /**
     * 当前群成员版本号
     */
    @Schema(description = "当前群成员版本号")
    @TableField("member_version")
    private String memberVersion;


    /**
     * 群聊类型 1-外部群聊 2-内部群聊
     */
    @Schema(description = "群聊类型 1-外部群聊 2-内部群聊")
    @TableField("group_type")
    private Integer groupType;



}

